#include <iostream>
#include <pthread.h>

using namespace std;

void* task1(void *)
{
	cout << "task 1 do task 1" <<endl;
	return NULL;
}

void* task2(void *)
{
	 cout << "task 2 do task 2" <<endl;
	 return NULL;
}

int main()
{
	pthread_t thread1, thread2;

	pthread_create(&thread1, NULL, task1, NULL);
	pthread_create(&thread2, NULL, task2, NULL);

	pthread_join(thread1, NULL);
	pthread_join(thread2, NULL);

	return 0;
}
